import requests
import re
url = "https://movie.douban.com/chart"

headers = {
"user-agent":'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36'
}

response = requests.get(url, headers=headers)

if response.status_code:
    print(response.text)
    movie = re.findall(r'<a class="nbg" href="(.*?)".*?title="(.*?)".*?src="(.*?)" width="75"</a>',response.text,re.S)
    print(movie)
















